package com.github.pig.admin.model.attendance;

import java.sql.Time;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxf
 * @since 2018-11-22
 */
@TableName("attendance_schedule")
public class AttendanceSchedule extends Model<AttendanceSchedule> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.UUID)
    private String id;
    /**
     * 班次名称
     */
    @TableField("schedule_name")
    private String scheduleName;
    /**
     * 一天上下班几次 1次：2次
     */
    private Integer number;
    /**
     * 第一次上班 小时
     */
    @TableField("first_start")
    private Time firstStart;
    /**
     * 第一次下班  小时
     */
    @TableField("first_end")
    private Time firstEnd;
    /**
     * 第二次上班
     */
    @TableField("second_start")
    private Time secondStart;
    /**
     * 第二次下班
     */
    @TableField("second_end")
    private Time secondEnd;
    @TableField("create_user")
    private Time createUser;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_user")
    private String updateUser;
    @TableField("update_time")
    private Date updateTime;
    @TableField("del_flag")
    private String delFlag;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScheduleName() {
        return scheduleName;
    }

    public void setScheduleName(String scheduleName) {
        this.scheduleName = scheduleName;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Time getFirstStart() {
        return firstStart;
    }

    public void setFirstStart(Time firstStart) {
        this.firstStart = firstStart;
    }

    public Time getFirstEnd() {
        return firstEnd;
    }

    public void setFirstEnd(Time firstEnd) {
        this.firstEnd = firstEnd;
    }

    public Time getSecondStart() {
        return secondStart;
    }

    public void setSecondStart(Time secondStart) {
        this.secondStart = secondStart;
    }

    public Time getSecondEnd() {
        return secondEnd;
    }

    public void setSecondEnd(Time secondEnd) {
        this.secondEnd = secondEnd;
    }

    public Time getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Time createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AttendanceSchedule{" +
        ", id=" + id +
        ", scheduleName=" + scheduleName +
        ", number=" + number +
        ", firstStart=" + firstStart +
        ", firstEnd=" + firstEnd +
        ", secondStart=" + secondStart +
        ", secondEnd=" + secondEnd +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", delFlag=" + delFlag +
        "}";
    }
}
